Class OdinCustomEffectUnityComponentBase<U>
Custom base component for OdinNative.Wrapper.Media.CustomEffect
This convenient class provides effect template with a passthrough of custom userdata on a callback. The abstract representation of a base custom effect is to simplify implementation of OdinNative.Unity.Audio.IOdinEffect as a Unity component. (see other predefined custom effects)
Assembly: cs.temp.dll.dll
Derived:
OdinNative.Unity.Audio.OdinColliderFilterComponent, OdinNative.Unity.Audio.OdinECLoopbackComponent, OdinNative.Unity.Audio.OdinMuteAudioComponent, OdinNative.Unity.Audio.OdinTerrainFilterComponent, OdinNative.Unity.Audio.OdinVolumeBoostComponent, OdinNative.Unity.Audio.OdinVolumeComponent
Implements:
OdinNative.Unity.Audio.IOdinEffect
Properties
Media
Get Media
Effect
Get base effect
IsCreated
Flag if the effect was added to the pipeline
IsEnabled
Flag if the component is active or use isActiveAndEnabled
Fields
UnityQueue
DestroyOnError
_warn
_corrupt
Methods
OnEnable()
Reset()
Start()
Update()
OnDisable()
GetEffectUserData()
Get userdata used for the
Returns
<U>
: effect userdata### CustomEffectCallback(OdinArrayf, ref bool, U)
Callback delegate for the effect
Parameters
Type | Name | Description |
---|---|---|
Odin.OdinArrayf | audio | audio data wrapper for copy buffer to native |
System.Boolean | isSilent | |
<U> | _ |
ResetEffect()
Removes an effect from the pipeline and add a new effect with callbacks
OnDestroy()
GetMedia<T>()
Get Media
Returns
<T>
: Media##### Type Parameters
T
GetEffect()
Get custom effect
Returns
Odin.PiplineEffect
: custom effect